<% if logged_in? -%>
	<h1 class="page_title">Available Surveys</h1>
<% else -%>
	<h1 class="page_title">Latest Surveys</h1>
<% end %>

<br/>
<% if @questionnaires.count > 0%>

<div id="survey_list"><%= render :partial => "questionnaires" %></div>

<% else %>
	<p>There are no questionnaires</p>
<% end -%>

<br />

<% if logged_in? -%>
	<%= link_to 'New', new_questionnaire_path %>
<% end %>
